/*pub-1|2012-06-15 11:24:06*/Volcano.Countdown = (function(B) {
	var C = B.DOM, E = window;
	var F = "vol-countdown";
	function D(H) {
		if (/^\d+$/.exec(H)) {
			return H - 0
		}
		return 0
	}
	function G(H) {
		return H < 10 ? ("0" + H) : ("" + H)
	}
	function A(I, H) {
		this.el = C.get(I);
		if (!this.el || C.data(this.el, "hasTimer")) {
			return
		}
		C.data(this.el, "hasTimer", true);
		this._options = B.merge(H, {
			autohide : true
		});
		this._exp = {}
	}
	B
			.augment(
					A,
					B.EventTarget,
					{
						run : function() {
							if (!this.el) {
								return
							}
							var H = this._options;
							this.timeEnd = (H.timeEnd || D(this.el
									.getAttribute("data-end"))) - 0;
							this.timeNow = (H.timeNow || D(this.el
									.getAttribute("data-now"))) - 0;
							this.timeLeft = this.timeEnd - this.timeNow;
							this.timePass = 0;
							if (this.timeLeft <= 0) {
								C.data(this.el, "hasTimer", false);
								this.fire("timeOut");
								return
							}
							this._mockup();
							var I = {};
							I.second = this.timeLeft;
							I.hour = Math.floor(I.second / 3600);
							I.second -= I.hour * 3600;
							I.minute = Math.floor(I.second / 60);
							I.second -= 60 * I.minute;
							this._left = I;
							this._start()
						},
						_mockup : function() {
							if (this._eles) {
								return
							}
							if (!C.hasClass(this.el, F)) {
								C.addClass(this.el, F)
							}
							this.el.innerHTML = '<span class="vol-countdown-part vol-countdown-hour"><strong class="vol-countdown-digital vol-countdown-a"></strong><strong class="vol-countdown-digital vol-countdown-b"></strong><span class="vol-countdown-unit">:</span></span><span class="vol-countdown-part vol-countdown-minute"><strong class="vol-countdown-digital vol-countdown-a"></strong><strong class="vol-countdown-digital vol-countdown-b"></strong><span class="vol-countdown-unit">:</span></span><span class="vol-countdown-part vol-countdown-second"><strong class="vol-countdown-digital vol-countdown-a"></strong><strong class="vol-countdown-digital vol-countdown-b"></strong><span class="vol-countdown-unit">:</span></span>';
							var H = C.query("strong", this.el);
							this._eleHourA = H[0];
							this._eleHourB = H[1];
							this._eleMinuteA = H[2];
							this._eleMinuteB = H[3];
							this._eleSecondA = H[4];
							this._eleSecondB = H[5];
							this._eles = H
						},
						_start : function() {
							var O = this.timeLeft, L = this._left, H = L.hour, M = L.minute, K = L.second, J = this, I = setInterval;
							var N = function() {
								if (0 > O) {
									C.data(J.el, "hasTimer", false);
									J.fire("timeEnd", {
										timeStr : J.date()
									});
									return
								}
								var R = G(H).split("");
								var Z = G(M).split("");
								var T = G(K).split("");
								J._eleHourA.innerHTML = R[0];
								J._eleHourA.className = "vol-countdown-digital vol-countdown-a vol-countdown-"
										+ R[0];
								J._eleHourB.innerHTML = R[1];
								J._eleHourB.className = "vol-countdown-digital vol-countdown-b vol-countdown-"
										+ R[1];
								J._eleMinuteA.innerHTML = Z[0];
								J._eleMinuteA.className = "vol-countdown-digital vol-countdown-a vol-countdown-"
										+ Z[0];
								J._eleMinuteB.innerHTML = Z[1];
								J._eleMinuteB.className = "vol-countdown-digital vol-countdown-b vol-countdown-"
										+ Z[1];
								J._eleSecondA.innerHTML = T[0];
								J._eleSecondA.className = "vol-countdown-digital vol-countdown-a vol-countdown-"
										+ T[0];
								J._eleSecondB.innerHTML = T[1];
								J._eleSecondB.className = "vol-countdown-digital vol-countdown-b vol-countdown-"
										+ T[1];
								var P = J.date();
								var U = {
									left : O,
									hour : H,
									minute : M,
									second : K,
									timeStr : P
								};
								J.fire("timeing", U);
								var W = J._exp, Q, Y, S;
								for (Q in W) {
									Y = W[Q];
									if (Y.re.exec(P)) {
										S = Y.callback;
										for ( var V = 0, X = S.length; V < X; V++) {
											S[V].call(E, U)
										}
									}
								}
								K -= 1;
								O -= 1;
								J.timePass++;
								if (-1 === K && (0 < M || 0 < H)) {
									K = 59;
									M--
								}
								if (-1 === M && (0 < H)) {
									M = 59;
									H--
								}
							};
							I(N, 1000);
							N()
						},
						date : function(J) {
							J = J || "{H}:{i}:{s}";
							var H = (this.timeNow + this.timePass) * 1000;
							var I = new Date(H);
							return J.replace(/{(\w+)}/g, function(L, K) {
								switch (K) {
								case "H":
									return G(I.getHours());
								case "i":
									return G(I.getMinutes());
								case "s":
									return G(I.getSeconds())
								}
							})
						},
						when : function(H, I) {
							var K = H.replace(/{\w+}/g, "\\d+");
							var J = this._exp[K] || {
								re : new RegExp(K),
								exp : H,
								callback : []
							};
							J.callback.push(I);
							this._exp[K] = J
						},
						removeWhen : function(J, K) {
							var N = J.replace(/{\w+}/g, "\\d+");
							var M = this._exp[N];
							if (M && M.callback) {
								if (K) {
									var L = [], O = M.callback;
									for ( var I = 0, H = O.length; I < H; I++) {
										if (O[I] != K) {
											L.push(O[I])
										}
									}
									M.callback = L
								} else {
									M.callback = []
								}
							}
						}
					});
	return A
})(KISSY);/* pub-1|2012-06-15 09:00:16 */
Volcano.cat = (function(E, G) {
	var L = E.DOM, K = E.Event, H = E.Anim;
	var I = L.create('<div id="J_VolCat" class="vol-cat">');
	var F = L
			.create('<div id="J_VolCatBody" class="vol-cat-body" style="display:none;position:absolute;">');
	F.appendChild(I);
	var D = null;
	var A = null;
	var J = null;
	var C = null;
	var B = {
		run : function() {
			this.setPos();
			this.show()
		},
		setPos : function() {
			L.css(F, "top", Math.round(Math.random()
					* (L.viewportHeight() - 120))
					+ "px");
			L.css(F, "left", Math.round(Math.random()
					* (L.viewportWidth() - 120))
					+ "px")
		},
		catched : function() {
			this.hide();
			Volcano.getLottery("cat", function(M) {
			})
		},
		show : function() {
			var M = this;
			var N = L.get("#J_VolCat");
			if (!N) {
				document.body.appendChild(F)
			}
			L.css(F, "display", "block");
			this.status = "showing";
			D = H("#J_VolCat", {
				top : "0"
			}, 0.3, "easyInStrong", function() {
				clearTimeout(C);
				clearTimeout(J);
				C = setTimeout(function() {
					M.hide()
				}, (Math.random() * 3) * 1000);
				M.status = "showed"
			});
			D.run()
		},
		hide : function() {
			var M = this;
			this.status = "hiding";
			D = H("#J_VolCat", {
				top : "74px"
			}, 0.3, "easyOutStrong", function() {
				L.css(F, "display", "none");
				clearTimeout(C);
				clearTimeout(J);
				M.afterHide && M.afterHide();
				M.status = "hided"
			});
			D.run()
		},
		start : function(M) {
			M = M || 60;
			M = M * 1000;
			var N = this;
			var P = 2000;
			var O = 1;
			N.run();
			N.afterHide = function() {
				J = setTimeout(function() {
					if (N.status == "hided") {
						N.run()
					}
				}, (Math.random() * 1) * 1000)
			};
			A = setInterval(function() {
				M -= P;
				if (M <= 2000) {
					delete N.afterHide;
					clearInterval(A)
				}
			}, 2000)
		},
		stop : function() {
			if (D) {
				D.stop()
			}
			clearInterval(A);
			clearTimeout(C);
			clearTimeout(J);
			L.css(F, "display", "none")
		},
		init : function() {
			var M = this;
			K.on(F, "click", function() {
				M.catched()
			})
		}
	};
	B.init();
	return B
})(KISSY, window);/* pub-1|2012-06-15 13:27:31 */
var Volcano = window.Volcano || {};
Volcano.rate = 0.3;
Volcano.userTimes = 0;
Volcano.Msgs = {
	cat : {
		success : "\u83b7\u5f97<span class='vol-dialog-hi'>${val}</span>\u7ea2\u5305",
		fail : "\u672a\u4e2d\u5956\u7ee7\u7eed\u6349\u5427\uff01"
	},
	bag : {
		success : "\u83b7\u5f97<span class='vol-dialog-hi'>${val}</span>\u7ea2\u5305",
		fail : "\u5dee\u4e00\u70b9\u5c31\u62a2\u5230\u4e86\uff0c\u518d\u6765\u4e00\u6b21\u5427\u3002",
		over : "\u522b\u7070\u5fc3,\u4e0b\u4e2a\u6574\u70b9\u518d\u6765\u5427"
	}
};
Volcano.shareText = "#\u4e0a\u5929\u732b\uff0c\u5c31\u8d2d\u4e86# 4000\u4e07\u7ea2\u5305\u5927\u6d3e\u9001\uff016\u670815\u65e5\u81f318\u65e5\uff0c\u8f93\u5165tmall.com\u767b\u9646\u5929\u732b\uff0c\u767e\u4e07\u4efd5\u5143\u300120\u5143\u3001100\u5143\u30011000\u5143\u30013000\u5143\u30014999\u5143\u7b49\u591a\u8fbe9\u6863\u9762\u989d\u7684\u7ea2\u5305\u5168\u573a\u65e0\u95e8\u69db\u53d1\u9001\uff0c\u5168\u57ce\u65e0\u9650\u5236\u4f7f\u7528\u3002\u8d76\u7d27\u6765\u62a2\u5427\uff01";
Volcano.getLottery = function(B) {
	var K = B.Event, A = B.DOM;
	var F = '<dl class="vol-tip"><dt>\u63d0\u793a\uff1a</dt><dd>1.\u53ea\u6709\u7ed1\u5b9a\u624b\u673a\u624d\u80fd\u6536\u5230\u7ea2\u5305\u54e6\u3002<a href="http://110.taobao.com/home/myInfo.htm" target="_blank">\u67e5\u770b\u7ed1\u5b9a\u60c5\u51b5></a></dd><dd>2.\u6211\u4eec\u5c06\u4e8e\u5f53\u592924:00\u524d\uff0c\u5c06\u7ea2\u5305\u53d1\u9001\u5230\u60a8\u7684\u652f\u4ed8\u5b9d\u5e10\u6237\u3002</dd></dl>';
	var C = '<div class="vol-dialog-card"><p>\u5b89\u6170\u5956\uff1a\u60a8\u53ef\u9886\u53d61\u5f20\u5929\u732b\u9000\u8d27\u4fdd\u969c\u5361<br><a target="_blank" href="http://vip.tmall.com/vip/privilege.htm?layer=activation&amp;priv=returngurantee">\u70b9\u51fb\u9886\u53d6></a></p></div>';
	var J = '<div class="vol-dialog"><div class="vol-dialog-${type}"></div><div class="vol-dialog-msg">${msg}</div>${share}${left}${other}<i class="vol-dialog-cat"></i> <a class="vol-dialog-close">X</a></div>';
	var I = false;
	var G = null;
	var H = {
		showDialog : function(L) {
			L.other = L.other || F;
			var M = G, E = H.renderData(J, L);
			if (!M) {
				M = document.createElement("div");
				document.body.appendChild(M);
				K.on(M, "click", function(O) {
					var N = O.target;
					if (A.hasClass(N, "vol-dialog-close")) {
						M.innerHTML = "";
						O.preventDefault()
					} else {
						if (A.hasClass(N, "vol-dialog-share")) {
							H.share();
							O.preventDefault()
						}
					}
				})
			}
			M.innerHTML = E;
			M.style.height = "100px";
			var D = new B.Anim(B.get(".vol-dialog", M), {
				top : "50px"
			}, 0.3, "easeOutStrong");
			D.run();
			G = M
		},
		renderData : function(E, D) {
			return E.replace(/\$\{(.*?)\}/g, function(M, L) {
				return D[L] || ""
			})
		},
		checkGetLottery : function(D, E) {
			if (B.get("#login-info .j_UserNick") || I) {
				H.getlottery(D, E)
			} else {
				H.loginGetLottery(D, E)
			}
		},
		loginGetLottery : function(D, E) {
			TML.use("minilogin,overlay/css/overlay.css", function(L, M) {
				M = M || L.MiniLogin;
				M.show(function() {
					I = true;
					TB._isMemberInfoReady = false;
					TB._isLoginStatusReady = false;
					TB.Global.writeLoginInfo();
					H.getlottery(D, E)
				}, {
					check : false
				})
			})
		},
		share : function() {
			window
					.open(
							"http://service.weibo.com/share/share.php?url="
									+ encodeURIComponent(location.href)
									+ "&title="
									+ encodeURIComponent(Volcano.shareText)
									+ "&pic=http://img04.taobaocdn.com/tps/i4/T1yBzjXf8qXXXzmpoC-540-260.jpg",
							"", "height=700, width=650")
		},
		getlottery : function(L, P) {
			H.showDialog({
				msg : "\u6b63\u5728\u4e3a\u60a8\u62bd\u5956..."
			});
			var M = Math.random();
			B.log(M);
			if (M < Volcano.rate && Volcano.userTimes < 12) {
				var N = "http://promotion.taobao.com/tmall/furinkazan.do?we=1", E = false;
				N += Volcano.Bus.awardCode;
				N += "&ua=" + encodeURIComponent(ua);
				N += "&RandomNum=" + new Date().getTime();
				N += "&stra=" + (L === "bag" ? "1" : "2");
				var D = "tml" + B.guid();
				K.on(window, "error", function(Q) {
					E = true;
					H.error({
						isSuccess : "F",
						error : "E000"
					}, L, P);
					K.remove(window, "error", arguments.callee)
				});
				var O = function(Q) {
					E = true;
					if (Q.isSuccess === "T") {
						H.success(Q, L, P)
					} else {
						H.error(Q, L, P)
					}
					if (Q.param) {
						Volcano.userTimes = Q.param.times;
						Volcano.rate = Q.param.ratio
					}
				};
				B.io({
					url : N,
					type : "get",
					dataType : "jsonp",
					jsonpCallback : D,
					success : O,
					error : function() {
						E = true;
						H.error({
							isSuccess : "F",
							error : "E000"
						}, L, P)
					}
				});
				UA_Opt.Token = new Date().getTime() + ":" + Math.random();
				UA_Opt.reload();
				setTimeout(function() {
					if (!E) {
						E = true;
						O = function() {
						};
						H.error({
							isSuccess : "F",
							error : "E000"
						}, L, P)
					}
				}, 3000)
			} else {
				H.error({
					isSuccess : "F",
					error : "E000"
				}, L, P)
			}
		},
		success : function(E, D, L) {
			H
					.showDialog({
						type : D + "-ok",
						msg : H.renderData(Volcano.Msgs[D]["success"], {
							val : E.user.name
						}),
						share : '<a class="vol-dialog-share">\u5206\u4eab\u5fae\u535a></a>',
						left : D == "bag" ? '<p class="vol-dialog-left">\u672c\u65f6\u6bb5\u5269\u4f59 <b>'
								+ H.getLeft(E) + "</b> \u4e2a\u7ea2\u5305</p>"
								: ""
					});
			L(E);
			Volcano.Bus.leftBagNum = H.getLeft(E)
		},
		error : function(L, D, M) {
			if (L.param && L.param.prizeBestow) {
				Volcano.Bus.leftBagNum = H.getLeft(L)
			}
			var E = L.error;
			if (E === "E014") {
				H.loginGetLottery(D, M)
			} else {
				if (!Volcano.Bus.inSafeMin && D === "bag" && L.param
						&& L.param.prizeBestow >= Volcano.Bus.bagTotal) {
					H.showDialog({
						type : "over",
						msg : Volcano.Msgs[D]["over"]
					});
					M(L)
				} else {
					H
							.showDialog({
								type : "fail",
								msg : Volcano.Msgs[D]["fail"],
								left : L.param && D == "bag"
										&& H.getLeft(L) > 0 ? '<p class="vol-dialog-left">\u672c\u65f6\u6bb5\u5269\u4f59 <b>'
										+ H.getLeft(L)
										+ "</b> \u4e2a\u7ea2\u5305</p>"
										: ""
							});
					M(L)
				}
			}
		},
		getLeft : function(E) {
			var D = Volcano.Bus.bagTotal - E.param.prizeBestow;
			return D > 0 ? D : 0
		}
	};
	Volcano.closeDialog = function() {
		if (G) {
			G.innerHTML = ""
		}
	};
	return function(D, E) {
		D = D || "bag";
		E = E || function() {
		};
		if (G) {
			G.innerHTML = ""
		}
		H.checkGetLottery(D, E)
	}
}(KISSY);/* pub-1|2012-06-15 12:51:10 */
Volcano.Controller = (function(E, J) {
	var Q = E.DOM, O = E.Event, C = E.Cookie;
	var B;
	var M = Volcano.Bus;
	var P = M.detailTitleMap;
	var G = Q.get("#J_BagBox");
	var L = Q.get("#J_Lucky");
	var N = Q.get("#J_DetailTitle");
	var F = Q.get("#J_CountDown");
	var I = Q.get("#J_CatTip");
	var K = Q.query("li", "#J_VolTimeLine");
	var D = Q.get("#J_TopTitle");
	L.id = "";
	var H = {
		init : function() {
		},
		updateDetailTitle : function(R) {
			N.innerHTML = R
		},
		goNextRound : function() {
			this.hideBagBox();
			this.showTimer();
			this.updateDetailTitle(P.nervous);
			this.disableLuckyBtn()
		},
		hideLuckyBtn : function() {
			L.style.visibility = "hidden"
		},
		showLuckyBtn : function() {
			this.enableLuckyBtn();
			L.style.visibility = "visible"
		},
		enableLuckyBtn : function() {
			Q.removeClass(L, "vol-btn-disable");
			L.disabled = "false"
		},
		disableLuckyBtn : function() {
			if (M.inSafeMin) {
				return
			}
			Q.addClass(L, "vol-btn-disable");
			L.disabled = "true"
		},
		showTimer : function() {
			F.style.visibility = "visible"
		},
		hideTimer : function() {
			F.style.visibility = "hidden"
		},
		showBagBox : function() {
			G.style.visibility = "visible"
		},
		hideBagBox : function() {
			G.style.visibility = "hidden"
		},
		showCatchCatTip : function() {
			I.style.visibility = "visible";
			D.style.visibility = "hidden"
		},
		hideCatchCatTip : function() {
			I.style.visibility = "hidden";
			D.style.visibility = "visible"
		},
		updateTimeline : function(S) {
			var R;
			if (S.indexOf(":11:") > -1) {
				R = S.replace(/(\d+:\d+:)\d+/, "$100")
			}
			S = S.replace(/(\d+):\d+:\d+/, "$1:00:00");
			E.each(K, function(T) {
				var U = T.getAttribute("data-time");
				Q[(U == S || U == R) ? "addClass" : "removeClass"](T,
						"vol-timeline-cur")
			})
		}
	};
	H.updateTimeline(M.timeObj.hour + ":00:00");
	function A() {
		B = new Volcano.Countdown(F, {
			timeNow : M.timeNow,
			timeEnd : M.timeEnd
		});
		B.on("timeing", function(S) {
			var R = S.timeStr.split(":");
			M.timeObj = {
				hour : R[0],
				minute : R[1],
				second : R[2]
			};
			M.inSafeMin = (R[1] - 0) <= 20;
			if (0 === M.leftBagNum) {
				H.goNextRound()
			}
		});
		if (M.isEnd) {
			B.when("00:00:01", function() {
				H.updateDetailTitle(P.await)
			})
		} else {
			E.each([ "11:11:{v}", "15:11:{v}", "20:11:{v}" ], function(R) {
				B.when(R, function(S) {
					H.showCatchCatTip();
					H.updateTimeline(S.timeStr);
					Volcano.cat.start();
					B.removeWhen(R, arguments.callee)
				})
			});
			E.each([ "11:12:00", "15:12:00", "20:12:00" ], function(R) {
				B.when(R, function(S) {
					H.hideCatchCatTip();
					H.updateTimeline(S.timeStr);
					Volcano.cat.stop();
					Volcano.closeDialog()
				})
			});
			B.when(M.hourEnd + 1 + ":00:00", function() {
				H.updateTimeline("0");
				H.hideBagBox();
				H.showTimer();
				H.updateDetailTitle(P.nervous);
				H.disableLuckyBtn()
			})
		}
		B.on("timeEnd", function(R) {
			var S = false;
			if (M.timeOut - M.timeEnd <= 3600) {
				S = true;
				M.timeNow = M.timeEnd + 1;
				M.timeEnd = M.timeNext
			} else {
				M.timeNow = M.timeEnd + 1;
				M.timeEnd += 3600
			}
			if (M.timeNow >= M.timeOut && !S) {
				M.timeEnd = M.timeNext;
				H.updateDetailTitle(P.tomorrow);
				H.disableLuckyBtn()
			} else {
				H.hideTimer();
				H.showBagBox();
				H.showLuckyBtn();
				H.updateDetailTitle(P.crazy);
				H.updateTimeline(R.timeStr);
				Volcano.Message.fire("showCrazy")
			}
			A()
		});
		B.on("timeing", function(R) {
			Volcano.Message.fire("timeing", R)
		});
		B.run()
	}
	A();
	Volcano.Timer = B;
	O.on(L, "click", function(R) {
		if ("true" == this.disabled || Q.hasClass(this, "vol-btn-disable")) {
			return
		}
		this.id = "_" + Math.random();
		Volcano.getLottery("bag", function(S) {
			Volcano.Message.fire("bagLotterySuccess", S)
		})
	});
	return H
})(KISSY, window);/* pub-1|2012-06-15 08:51:37 */
KISSY
		.ready(function(B) {
			function A(E, D, H) {
				if (!E) {
					return false
				}
				D = D || location.href;
				H = H || document.title;
				var G = window.external, F = window.sidebar, C = true;
				if (G && "AddFavorite" in G) {
					G.AddFavorite(D, H)
				} else {
					if (F && F.addPanel) {
						F.addPanel(H, D, "")
					} else {
						if (window.opera) {
							E.setAttribute("rel", "sidebar");
							E.href = D;
							E.title = H
						} else {
							alert("\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u81ea\u52a8\u6dfb\u52a0\u6536\u85cf\u5939\u529f\u80fd\n\u8bf7\u624b\u52a8\u5c06\u672c\u9875\u6dfb\u52a0\u5230\u6536\u85cf\u5939\uff08\u5feb\u6377\u952e\uff1a"
									+ (navigator.appVersion.indexOf("Mac") > -1 ? "Cmd"
											: "Ctrl") + "+D)");
							C = false
						}
					}
				}
				return C
			}
			B.Event.on("#J_AddFavLink", "click", function(C) {
				C.halt();
				A(this, location.href, "\u5929\u732bTmall.com")
			})
		});/* pub-1|2012-06-15 08:51:37 */
Volcano.bagleft = (function(E, F) {
	var H = E.DOM, G = E.Event, A = E.Cookie;
	var C = H.get("#J_BagLeft");
	var D = H.get("#J_BagBox");
	var I = Volcano.Message;
	var B = {
		update : function(K) {
			var J = Volcano.Bus.timeObj;
			K = typeof K == "undefined" ? Math.round(H.html(C) * 1
					- Math.random() * this.step) : K;
			if (K < 0) {
				K = 0
			}
			if (isNaN(K)) {
				K = 0
			}
			if (C && D && (H.css(D, "visibility") == "visible")) {
				A
						.set("lastTime", J.hour + ":" + J.minute + ":"
								+ J.second, "/");
				A.set("lastCount", K, "/");
				H.html(C, K)
			}
			if (K === 0) {
				Volcano.Controller.goNextRound()
			}
		},
		setStep : function(J) {
			this.step = J
		},
		reset : function() {
			this.update(this.initial);
			A.remove("lastTime");
			A.remove("lastCount")
		},
		init : function(P, K) {
			var Q = Volcano.Bus, M = null, J = null, L = null, V = null, T = null, O = null;
			var U = this;
			P = P || Q.bagTotal;
			K = K || Q.bagCycle;
			this.initial = P;
			this.step = P / K / 60;
			if (M = Q.timeObj) {
				J = A.get("lastTime");
				O = A.get("lastCount");
				if (J) {
					L = J.split(":")[0];
					V = J.split(":")[1];
					T = J.split(":")[2]
				}
				if (M.hour != L || (V > M.minute)) {
					V = 0;
					T = 0;
					O = P;
					A.remove("lastTime");
					A.remove("lastCount")
				}
				V = V || 0;
				T = T || 0;
				if (C) {
					var S = (M.minute - V) * 60 + (M.second - T) * 1;
					var R = O || P;
					for ( var N = 1; N < S; N++) {
						R -= Math.round(Math.random() * this.step)
					}
					this.update(R)
				}
			}
			I.on("showCrazy", function(W) {
				U.reset()
			});
			I.on("timeing", function(W) {
				U.update()
			});
			I.on("bagLotterySuccess", function(W) {
				console.info(W);
				if (W && W.param && W.param.prizeBestow) {
					U.update(Q.bagTotal - W.param.prizeBestow)
				}
			})
		}
	};
	return B
})(KISSY, window);/* pub-1|2012-06-15 08:51:37 */
(function(D) {
	var A = new Image();
	var C = window;
	function B(F) {
		var E = "";
		if (C.userCookie) {
			E = C.userCookie._nk_ || ""
		}
		A.src = "http://www.atpanel.com/tmallhd.1.1?nick=" + E + "&" + F
	}
	Volcano.Message.on("stat", B);
	KISSY.Event.on("#J_Vol", "click", function(E) {
		var F = E.target;
		var G = F.getAttribute("data-stat");
		if (G) {
			B(G)
		}
	})
})();